<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
$this->load->view('header');
?>
	<section class="image">
		<div class="grid_2">
			<p><strong>上一个：</strong></p>
			<?php if ($image_pre): ?>
			<a href="/albums/image/<?php echo $image_pre->ID; ?>">
				<img src="/upload/<?php echo $image_pre->image_name.'_thumb'.$image_pre->file_ext; ?>" alt="<?php echo $image_pre->image_description; ?>" />
			</a>
			<?php else : ?>
				<a href="/albums/view/<?php echo $image->album_id; ?>" title="返回列表">返回列表<a/>
			<?php endif; ?>
		</div>
            
		<figure class="grid_8">
			<?php if ($image_next): ?>
			<a href="/albums/image/<?php echo $image_next->ID; ?>">
			<?php else: ?>
			<a href="/albums/view/<?php echo $image->album_id; ?>">
			<?php endif; ?>
				<img src="/upload/<?php echo $image->image_name.'_resize'.$image->file_ext; ?>" alt="<?php echo $image->image_description; ?>" />
			</a>
			<figcaption><?php echo $image->image_description; ?></figcaption>
		</figure>
			
		<div class="grid_2">
			<p><strong>下一个：</strong></p>
			<?php if ($image_next): ?>
			<a href="/albums/image/<?php echo $image_next->ID; ?>">
				<img src="/upload/<?php echo $image_next->image_name.'_thumb'.$image_next->file_ext; ?>" alt="<?php echo $image_next->image_description; ?>" />
			</a>
			<?php else : ?>
				<a href="/albums/view/<?php echo $image->album_id; ?>" title="返回列表">返回列表<a/>
			<?php endif; ?>
		</div>
            <?php $this->load->view('comments'); ?>
	</section>
<?php
$this->load->view('footer');